package com.qumitech.visualnovel.service.taskrecord;

import com.qumitech.visualnovel.model.dao.console.TaskRecord;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface TaskRecordService {

    TaskRecord insert(String modelName, String title, Byte status, String downloadUrl, String operatePerson, String extraParam);

    int insert(TaskRecord record);

    int update(TaskRecord record);

    TaskRecord selectByPrimaryKey(Integer id);

    int getCount(String modelName, Integer accountId, Integer status, String startTime, String endTime);

    List<TaskRecord> getList(String modelName, Integer accountId, Integer status, String startTime, String endTime,
                             int offset, int pageSize, String orderBy, String orderType);

    List<TaskRecord> ListTask(String userName, String startTime, String endTime,
                              int offset, int pageSize);

    int CountTaskList(String userName, String startTime, String endTime, int offset, int pageSize);
}
